<?php
namespace app\index\controller;
use think\captcha\Captcha;
use think\facade\Session;

class Login
{
    public function index ()
    {
        if(!empty(session('user_id'))){
            session('user_id',null);
        }
        return view('/login');
    }
    // 生成验证码图片
    public function yzm()
    {

        $captcha = new Captcha();
        return $captcha->entry();
    }

}
